package popcorn.ticket.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.stereotype.Component;
@Component
public class Ticket implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = -3019481218234107283L;

	private Integer ticketid;

    private Orders orders;
    
    private String seat;

    private Integer ticketstatus;

    private Integer ticketcondition;
    //影厅名称
    private String hallname;
    //电影编号
    private Integer movieid;
    //电影名称
    private String moviename;
    //电影图片
    private String moviepic;
    //播放时间
    private int duration;
    //电影开始时间
    private Date playtime;
    //电影结束时间
    private Date endtime;
    //用于存储日期
    private String days;

	public Ticket() {
		// TODO Auto-generated constructor stub
	}

	public Ticket(Integer ticketid, Orders orders, Integer ticketstatus, Integer ticketcondition) {
		super();
		this.ticketid = ticketid;
		this.orders = orders;
		this.ticketstatus = ticketstatus;
		this.ticketcondition = ticketcondition;
	}
	
	public Ticket(Integer ticketid, Orders orders, String seat, Integer ticketstatus, Integer ticketcondition) {
		super();
		this.ticketid = ticketid;
		this.orders = orders;
		this.seat = seat;
		this.ticketstatus = ticketstatus;
		this.ticketcondition = ticketcondition;
	}

	/**
	 * @return the days
	 */
	public String getDays() {
		return days;
	}

	/**
	 * @param days the days to set
	 */
	public void setDays(String days) {
		this.days = days;
	}

	/**
	 * @return the hallname
	 */
	public String getHallname() {
		return hallname;
	}

	/**
	 * @param hallname the hallname to set
	 */
	public void setHallname(String hallname) {
		this.hallname = hallname;
	}

	/**
	 * @return the moviename
	 */
	public String getMoviename() {
		return moviename;
	}

	/**
	 * @param moviename the moviename to set
	 */
	public void setMoviename(String moviename) {
		this.moviename = moviename;
	}

	/**
	 * @return the playtime
	 */
	public Date getPlaytime() {
		return playtime;
	}

	/**
	 * @param playtime the playtime to set
	 */
	public void setPlaytime(Date playtime) {
		this.playtime = playtime;
	}

	@Override
	public String toString() {
		return "Ticket [ticketid=" + ticketid + ", orders=" + orders + ", ticketstatus=" + ticketstatus
				+ ", ticketcondition=" + ticketcondition + "]";
	}

	public Integer getTicketid() {
        return ticketid;
    }

    public void setTicketid(Integer ticketid) {
        this.ticketid = ticketid;
    }

    /**
	 * @return the endtime
	 */
	public Date getEndtime() {
		return endtime;
	}

	/**
	 * @param endtime the endtime to set
	 */
	public void setEndtime(Date endtime) {
		this.endtime = endtime;
	}

	public Integer getTicketstatus() {
        return ticketstatus;
    }

    /**
	 * @return the orders
	 */
	public Orders getOrders() {
		return orders;
	}

	/**
	 * @param orders the orders to set
	 */
	public void setOrders(Orders orders) {
		this.orders = orders;
	}

	public void setTicketstatus(Integer ticketstatus) {
        this.ticketstatus = ticketstatus;
    }

    public Integer getTicketcondition() {
        return ticketcondition;
    }

    public void setTicketcondition(Integer ticketcondition) {
        this.ticketcondition = ticketcondition;
    }

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public String getMoviepic() {
		return moviepic;
	}

	public void setMoviepic(String moviepic) {
		this.moviepic = moviepic;
	}

	public Integer getMovieid() {
		return movieid;
	}

	public void setMovieid(Integer movieid) {
		this.movieid = movieid;
	}

	public String getSeat() {
		return seat;
	}

	public void setSeat(String seat) {
		this.seat = seat;
	}
    
    
}